﻿using System;

namespace Itfort.UserCenter
{
	/// <summary>
	/// 
	/// </summary>
	[Serializable]
	public class User
	{
		/// <summary>
		/// 
		/// </summary>
		public Int32 Id { get; set; }
		/// <summary>
		/// 
		/// </summary>
		public String UserName { get; set; }
		/// <summary>
		/// 
		/// </summary>
		public String Password { get; set; }
		/// <summary>
		/// 
		/// </summary>
		public String PasswordSalt { get; set; }
		/// <summary>
		/// 
		/// </summary>
		public String Email { get; set; }
		/// <summary>
		/// 
		/// </summary>
		public String Mobile { get; set; }
		/// <summary>
		/// 
		/// </summary>
		public Boolean LoginViaEmail { get; set; }
		/// <summary>
		/// 
		/// </summary>
		public Boolean LoginViaMobile { get; set; }
		/// <summary>
		/// 
		/// </summary>
		public String Nickname { get; set; }
		/// <summary>
		/// 
		/// </summary>
		public DateTime CreationTime { get; set; }
		/// <summary>
		/// 
		/// </summary>
		public String CreationIP { get; set; }
	}

	/// <summary>
	/// 
	/// </summary>
	[Serializable]
	public class UserStatus
	{
		/// <summary>
		/// 
		/// </summary>
		public Int32 UserId { get; set; }
		/// <summary>
		/// 
		/// </summary>
		public DateTime LastLoginTime { get; set; }
		/// <summary>
		/// 
		/// </summary>
		public String LastLoginIP { get; set; }
		/// <summary>
		/// 
		/// </summary>
		public Byte FailedLoginAttempts { get; set; }
		/// <summary>
		/// 
		/// </summary>
		public DateTime LastFailedLoginTime { get; set; }
	}

	/// <summary>
	/// 
	/// </summary>
	[Serializable]
	public class UserSetting
	{
		/// <summary>
		/// 
		/// </summary>
		public String K { get; set; }
		/// <summary>
		/// 
		/// </summary>
		public String V { get; set; }
	}

}